package com.simple.service;

import org.springframework.web.multipart.MultipartFile;

import com.simple.entity.SysUser;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

public interface SysUserService {
    public SysUser save(SysUser sysUser);

    public SysUser selectEmail(String email);

    public SysUser selectUserName(String username);

    public SysUser saveAndFlush(SysUser sysUser);
    
    public List<SysUser> findAll();
    
    public void deleteUserById(Integer id);

    public void relationRole(Integer id,Integer roleId);

    public void setOnlineStatus(String  username,Integer status);

    //public List<SysUserVo> findAllOnline(Integer id);
    //查看所有在线人数
    public Integer findAllOnlineCount(String username);
    //后台激活账户
    public void activationUser(Integer status,Integer userId);
    //头像上传
    public void headPortraitUpload(MultipartFile file, Integer id);
    //
    public SysUser findByUserId(Integer id);
    //密码修改
    public void modifyPassword(String password);
    //发送邮件
    public void sendMail(SysUser sysUser,HttpServletRequest request);
}
